package tourmsystem.tourmanaging.classes;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.util.Date;

public class Tour {
 /* private String id;
  private String name;
  private Date startDate;
  private int duration;
  private int type ;
  // private int state;
  private float price;
  private float discount;
  private String schedule;
  private int maxP ;
  private String imgLink;

*/
    private String id;
    private String name;
    private Date startDate;
    private int duration;
    private int type;
    private float price;
    private float discount;
    private String schedule;
    private int maxP;
    private String imgLink;



    public Tour() {
        this("", "", new Date(), 0, 0, 0f, 0f, "", 0, "");
    }



    public Tour(String id, String name, Date  startDate, int duration, int type,  float price, float discount, String schedule, int maxP, String imgLink) {

   
        this.id = id;
        this.name = name;
        this.startDate = startDate;
        this.duration = duration;
        this.type = type;
        this.price = price;


        this.discount = discount;
        this.schedule = schedule;
        this.maxP = maxP;
        this.imgLink = imgLink;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public float getDiscount() {
        return discount;
    }

    public void setDiscount(float discount) {
        this.discount = discount;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImgLink() {
        return imgLink;
    }

    public void setImgLink(String imgLink) {
        this.imgLink = imgLink;
    }

    public int getMaxP() {
        return maxP;
    }

    public void setMaxP(int maxP) {
        this.maxP = maxP;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getSchedule() {
        return schedule;
    }

    public void setSchedule(String schedule) {
        this.schedule = schedule;
    }

    public Date getStartDate() {
        return startDate;
    }



   

    public void setStartDate(Date d) {
        startDate = d;
    }


    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {

        return "Tour{" + "id=" + id + ", name=" + name + ", startDate=" + startDate + ", duration=" + duration + ", type=" + type + ", price=" + price + ", discount=" + discount + ", schedule=" + schedule + ", maxP=" + maxP + ", imgLink=" + imgLink + '}';

       
    }
}
